package com.indusfo.spc.mapper;

import com.indusfo.spc.pojo.Repair;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RepairMapper {

    //添加
    int insertRepair(Repair repair);

    //修改
    int updateRepair(Repair repair);

    //查询一个
    List<Repair> selectByPrimaryKey(Repair repair);

    //查询所有
    List<Repair> selectAll(Repair repair);

    //计数
    int countRepair(Repair repair);

    //查询不良对策是否存在
    Integer selectRepair(Repair repair);

    //1 启用  2 删除  3停用 不良对策
    int delteRepair(@Param("repairIds") Long[] repairIds, @Param("dataState") Integer dataState);

    List<Repair> queryListRepairToInsert(Repair repair);

    Integer countRepairToInsert(Repair repair);
}